#ifndef NEWUSER_H
#define NEWUSER_H
#include <QLineEdit>
#include "user.h"
#include "main.h"
#include "mainlogin.h"
#include <QMainWindow>
#include <QWidget>
#include <QDebug>
#include <QDataStream>
#include <QPalette>
#include <QFile>
#include "adminerrordialog.h"
#include "admindata.h"

namespace Ui {
class NewUser;
}

class NewUser : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit NewUser(QWidget *parent = 0, AdminData *newData = 0);
    ~NewUser();

    
private slots:
    void on_cancelButton_clicked();
    void on_createAccountButton_clicked();
    void on_IdEdit_cursorPositionChanged(int arg1, int arg2);

private:
    Ui::NewUser *ui;
    int type;
    QString id;
    User *nuser;
    QPalette palette;
    AdminData *data;


};

QDataStream &operator<<(QDataStream &out, const NewUser &data);
QDataStream &operator>>(QDataStream &in, NewUser &data);
#endif // NEWUSER_H
